package com.jy.adscm.zltx.service;

import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.security.utils.Token;
import com.jy.adscm.zltx.bean.JyDrawingList;
import com.baomidou.mybatisplus.service.IService;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 图纸清单表 服务类
 * </p>
 *
 * @author zyl
 * @since 2018-10-26
 */
public interface JyDrawingListService extends IService<JyDrawingList> {


    List<JyDrawingList> selectAll() throws AdscmSystemException;

    JyDrawingList selectJyDrawingById(Integer id) throws AdscmSystemException;

    Boolean insertJyDrawingListTree(JyDrawingList jyDrawingList) throws AdscmSystemException;

    Boolean deleteJyDrawingListTree(Integer id) throws AdscmSystemException;

    Boolean updateJyDrawingListTree(JyDrawingList jyDrawingList)throws AdscmSystemException;

    List<JyDrawingList> selectRelationDraw(Integer id)throws AdscmSystemException;

    List<JyDrawingList> selectRelation(Integer id);
    Boolean   updateJyDrawing(Integer id);

    List<JyDrawingList> selectAllByFilter(Token token)throws AdscmSystemException;

    List<JyDrawingList> selectByParentId(Integer id, Token token);

    List<JyDrawingList> selectByDrawType(Integer id, Token token);

    List<JyDrawingList> selectByKeyWords(String keyWords);
}
